package com.xtaller.sdboot.entity;

import com.baomidou.mybatisplus.annotation.TableField; 
import com.xtaller.sdboot.core.base.BaseEntity; 
import org.hibernate.validator.constraints.Length; 
import javax.validation.constraints.NotNull; 
import lombok.Data; 
/** 
* 代码生成 
* @author: Taller  
* @date: 2020-03-30 12:32:07
* @Description: 组织架构 
*/ 
@Data 
public class IamDepartment extends BaseEntity { 
    // 所属应用id 对应iam_application.id 
    @TableField(value = "appId") 
    private String appId;

    // 部门名称 
    @TableField(value = "name") 
    private String name;

    // 上级部门Id 
    @TableField(value = "parentId") 
    private String parentId;

    // 排序 数字越大越靠前 
    @TableField(value = "sortId") 
    private Integer sortId;

    // 状态 1启用 0禁用 
    @TableField(value = "state") 
    private Integer state;

} 
